from utils import pandigitals

# [not correct]  the anwser might be a coincidence

for p in  pandigitals(range(1, 10) , 9)[::-1]:
    if int(p[4:]) % int(p[:4]) == 0:
        if int(p[4:]) / int(p[:4]) == 2:
            print p
            break

